package com.ourteam.product.ui.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:09 Warning ! This file will be overwrite when
 * regenerate !
 */
public class ProductUITreeRootNode implements java.io.Serializable {

  public ProductUITreeRootNode() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long treeId;

  /** Attribute treeId Be Seted Falg */
  private boolean treeIdSetted = false;

  /** Attribute treeId is Null Falg */
  private boolean treeIdNull = false;

  /**
   * Get treeId
   *
   * @return long
   */
  public final long getTreeId() {

    return treeId;
  }

  /**
   * Set treeId
   *
   * @param long
   */
  public final void setTreeId(long treeId) {

    this.treeId = treeId;

    this.treeIdSetted = true;

    this.setTreeIdNull(false);
  }

  /**
   * Get treeId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isTreeIdSetted() {
    return this.treeIdSetted;
  }

  /** Set treeId Null */
  public final void setTreeIdNull() {

    this.treeIdNull = true;
  }

  public final void setTreeIdNull(boolean aNullFlag) {

    this.treeIdNull = aNullFlag;
  }

  public final boolean isTreeIdNull() {

    return this.treeIdNull;
  }

  private long parentId;

  /** Attribute parentId Be Seted Falg */
  private boolean parentIdSetted = false;

  /** Attribute parentId is Null Falg */
  private boolean parentIdNull = false;

  /**
   * Get parentId
   *
   * @return long
   */
  public final long getParentId() {

    return parentId;
  }

  /**
   * Set parentId
   *
   * @param long
   */
  public final void setParentId(long parentId) {

    this.parentId = parentId;

    this.parentIdSetted = true;

    this.setParentIdNull(false);
  }

  /**
   * Get parentId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isParentIdSetted() {
    return this.parentIdSetted;
  }

  /** Set parentId Null */
  public final void setParentIdNull() {

    this.parentIdNull = true;
  }

  public final void setParentIdNull(boolean aNullFlag) {

    this.parentIdNull = aNullFlag;
  }

  public final boolean isParentIdNull() {

    return this.parentIdNull;
  }

  private long nodeId;

  /** Attribute nodeId Be Seted Falg */
  private boolean nodeIdSetted = false;

  /** Attribute nodeId is Null Falg */
  private boolean nodeIdNull = false;

  /**
   * Get nodeId
   *
   * @return long
   */
  public final long getNodeId() {

    return nodeId;
  }

  /**
   * Set nodeId
   *
   * @param long
   */
  public final void setNodeId(long nodeId) {

    this.nodeId = nodeId;

    this.nodeIdSetted = true;

    this.setNodeIdNull(false);
  }

  /**
   * Get nodeId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isNodeIdSetted() {
    return this.nodeIdSetted;
  }

  /** Set nodeId Null */
  public final void setNodeIdNull() {

    this.nodeIdNull = true;
  }

  public final void setNodeIdNull(boolean aNullFlag) {

    this.nodeIdNull = aNullFlag;
  }

  public final boolean isNodeIdNull() {

    return this.nodeIdNull;
  }

  private int sortIndex;

  /** Attribute sortIndex Be Seted Falg */
  private boolean sortIndexSetted = false;

  /** Attribute sortIndex is Null Falg */
  private boolean sortIndexNull = false;

  /**
   * Get sortIndex
   *
   * @return int
   */
  public final int getSortIndex() {

    return sortIndex;
  }

  /**
   * Set sortIndex
   *
   * @param int
   */
  public final void setSortIndex(int sortIndex) {

    this.sortIndex = sortIndex;

    this.sortIndexSetted = true;

    this.setSortIndexNull(false);
  }

  /**
   * Get sortIndex Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSortIndexSetted() {
    return this.sortIndexSetted;
  }

  /** Set sortIndex Null */
  public final void setSortIndexNull() {

    this.sortIndexNull = true;
  }

  public final void setSortIndexNull(boolean aNullFlag) {

    this.sortIndexNull = aNullFlag;
  }

  public final boolean isSortIndexNull() {

    return this.sortIndexNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProductUITreeRootNode) == false) {
      return false;
    }
    ProductUITreeRootNode other = (ProductUITreeRootNode) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("treeId=");
    buffer.append(this.treeId);

    buffer.append("parentId=");
    buffer.append(this.parentId);

    buffer.append("nodeId=");
    buffer.append(this.nodeId);

    buffer.append("sortIndex=");
    buffer.append(this.sortIndex);

    buffer.append("]");

    return buffer.toString();
  }
}
